package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/22/13
 * Time: 5:15 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {

    private String title;
    private String year;
    private String director;
    private String rating;

    public String getTitle() {
        return title;
    }

    public String getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public String getRating() {
        return rating;
    }

    public Movie(String title, String year, String director, String rating) {
        this.title = title;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public Movie(String director, String title, String year) {
        this.director = director;
        this.title = title;
        this.year = year;
        this.rating = "N/A";
    }

    public String toString() {
        return String.format("%s\t%s\t%s\t%s", this.getTitle(), this.getYear(), this.getDirector(), this.getRating());
    }
}
